package com.scut.fy.auth.feign.fallback;

import com.scut.fy.auth.feign.SysRoleService;
import com.scut.fy.common.web.util.HttpResult;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * TODO
 *
 * @author JY
 * @version 1.0
 * @date 2021/9/6
 */
@Service
public class SysRoleServiceFallback implements SysRoleService {

    private static final Logger log = LoggerFactory.getLogger(SysRoleServiceFallback.class);
    @Override
    public HttpResult<List<Map<String, Object>>> findRolesByUserName(String userName) {
        log.error("调用{}异常", "findRolesByUserName");
        return null;
    }

    @Override
    public HttpResult<List<Map<String, Object>>> findRolesByUserId(long userId) {
        log.error("调用{}异常", "findRolesByUserId");
        return null;
    }
}
